home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13009 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.unix.sco.programmer,comp.lang.c
  2. Path: idm.com!euro2!eck
  3. From: eck@idm.com (Eric Kurbat)
  4. Subject: Storing 20 character numbers
  5. Sender: news@idm.com (The News User)
  6. Message-ID: <DpB3sz.J9n@idm.com>
  7. Date: Wed, 3 Apr 1996 22:00:35 GMT
  8. Nntp-Posting-Host: euro2.idm.com
  9. Organization: Information Data Management
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Hello folks!
  13.     I've got a question that has probably been asked before, but I need
  14. to ask it again... I apologize in advance for any redundancy.
  15.  
  16.     Anyway, the question is, how do you store a 20 character integer
  17. number in a non-character variable in C without losing any of the digits?
  18. I did a little bit of playing around and a long double loses precision after
  19. about 16 digits. Does anyone have any ideas?
  20.  
  21. Regards,
  22. Eric
  23. --
  24. ----------------------------------------------------------------------------
  25.  "A cow can't whinny and horse has no udder.   | Eric Kurbat  :  eck@idm.com
  26.   Up is down and sideways is straight ahead!"  |                 eck@wwa.com 
  27. ----------------------------------------------------------------------------
  28.